<template>
  <div>
    <div class="login_div">
      <div class="login_left">
        <img class="logo_img" src="http://www-wms-java.itheima.net/img/title.ef005a7a.png" alt="" />
        <el-form ref="loginForm" :model="loginForm" label-width="80px">
          <div class="username_input input">
            <i class="el-icon-mobile"></i>
            <el-form-item>
              <el-input v-model="loginForm.username"></el-input>
            </el-form-item>
          </div>
          <div class="password_input input">
            <i class="el-icon-lock"></i>
            <el-form-item>
              <el-input v-model="loginForm.password" show-password></el-input>
            </el-form-item>
          </div>
        </el-form>
        <div class="keep_password">
          <el-checkbox v-model="checked">记住密码</el-checkbox>
        </div>
        <div class="login_btn">
          <el-button @click="$router.push('/layout')">立即登录</el-button>
        </div>
      </div>
      <div class="login_right"></div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      loginForm: {
        username: 'admin',
        password: '111111'
      },
      checked: true
    }
  },
  methods: {}
}
</script>

<style lang="less" scoped>
/deep/ .login_div {
  width: 958px;
  height: 516px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgb(93 93 93 / 33%);
  background-color: #fff;
  border-radius: 40px;
  .login_left {
    float: left;
    width: 398px;
    height: 516px;
    background: #fff;
    border-radius: 34px 0 0 34px;
    margin: 0 auto;
    .logo_img {
      margin-left: 124px;
      margin-top: 66px;
      width: 150px;
      height: 64px;
    }
    .el-form {
      padding-left: 60px;
      width: 280px;
      margin-right: 27px;
      .username_input {
        margin-top: 60px;
      }
      .input {
        line-height: 36px;
        > i {
          float: left;
          width: 50px;
          height: 50px;
          background: #eae7e7;
          border-radius: 8px 0 0 8px;
          font-size: 26px;
          text-align: center;
          line-height: 50px;
          color: RGB(190, 181, 181);
        }
        .el-input__inner {
          width: 230px;
          height: 50px;
          float: right;
          border: none;
          background-color: RGB(248, 245, 245);
          border-radius: 0 8px 8px 0;
        }
        .el-input__inner:hover {
          border: 1px RGB(136, 126, 126) solid;
        }
        .el-input__inner:focus {
          border: 1px RGB(255, 178, 0) solid;
        }
      }
    }
    .keep_password {
      .el-checkbox {
        padding-left: 60px;
      }
    }
    .login_btn {
      margin-top: 23px;
      margin-left: 59px;
      .el-button {
        width: 280px;
        height: 50px;
        background: #ffb200;
        border-radius: 8px;
        box-shadow: 0 2px 9px 1px rgb(255 178 0 / 47%);
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        color: #332929;
        line-height: 22px;
      }
    }
  }
  .login_right {
    float: right;
    background-image: url(http://www-wms-java.itheima.net/img/contentBg.1321d126.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 560px;
    height: 516px;
  }
}
</style>
